﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UniSender.Test
{
    class ClientStub : Client
    {
        public Func<string, IDictionary<string, object>, string> StubRequest;

        public ClientStub(string lang, string key)
            : base(lang, key)
        { }

        public ClientStub()
            : this("tt", "test")
        { }

        protected override string Request(string method, IDictionary<string, object> args)
        {
            return StubRequest != null ? StubRequest(method, args) : "{}";
        }
    }
}
